package C;

/**
 * 动物
 */
public class Animal {
    private String name;
    private String color;
    private int age;
    public Animal(String name,String color,int age){
        this.name = name;
        this.color = color;
        this.age = age;
    }
    public void shout(){
        System.out.println("他们都能够叫唤。");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
